Skip to content

Conversation

@clebs
Copy link

@clebs clebs commented Oct 23, 2025

What type of PR is this?
/kind support

What this PR does / why we need it:
This PR bumps CAPI to v1.11.0, and k8s to v1.33.3.

  • Update all imports to v1beta2 types except for conditions staying in v1beta1.
  • Adapt source code to work with v1beta2 and deprecated conditions.
  • Manually update conversions.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #5593

Replaces #5624

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • includes emoji in title
  • adds unit tests
  • adds or updates e2e tests

Release note:

Bump CAPI to v1.11 and k8s to v1.33

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/support Categorizes issue or PR as a support question. labels Oct 23, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ankitasw for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added needs-priority cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 23, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @clebs!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-aws 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-aws has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @clebs. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 23, 2025
@clebs
Copy link
Author

clebs commented Oct 23, 2025

@richardcase This PR here based on @bryan-cox's: #5720

Changes:

  • Rebased the PR to main
  • Fixed missing/wrong go modules
  • Updated all imports to use the new v1beta2 API, except for conditions which stay on v1beta1
  • Adapted all the code to properly use the new types
  • Add adapters to use v1beta1.Conditions with v1beta1types
  • Manually fix converters for FailureDomains

Current state:

  • Code compiles
  • Generation fails because of manual conversions required
  • Working on linting issues

@chrischdi
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be bumping KUBERNETES_VERSION_MANAGEMENT and KUBERNETES_VERSION_UPGRADE_FROM to target 1.33 in this file?

Copy link
Contributor

@cnmcavoy cnmcavoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment on the subnet filtering regression

@clebs clebs requested a review from chrischdi October 27, 2025 15:08
@damdo
Copy link
Member

damdo commented Nov 18, 2025

Hm still seeing this: https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api-provider-aws/5720/pull-cluster-api-provider-aws-e2e/1990716794330943488#1:build-log.txt%3A1229-1238

Are there some more of these that need updating?

[FAILED] failed to run clusterctl upgrade
  Unexpected error:
      <*errors.fundamental | 0xc0034bc4e0>: 
      current version of clusterctl could only upgrade the core provider to v1beta2 contract version, requested v1beta1
      {
          msg: "current version of clusterctl could only upgrade the core provider to v1beta2 contract version, requested v1beta1",
          stack: [0x3aa4970, 0x3aa39e5, 0x3ac2b64, 0x3bafbd3, 0x3bb49e8, 0x3d9b6f0, 0x86eb93, 0x882abb, 0x4841e1],
      }
  occurred
  In [It] at: /home/prow/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/client.go:202 @ 11/18/25 10:24:17.336

@clebs
Copy link
Author

clebs commented Nov 18, 2025

Hm still seeing this: https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api-provider-aws/5720/pull-cluster-api-provider-aws-e2e/1990716794330943488#1:build-log.txt%3A1229-1238

Are there some more of these that need updating?

[FAILED] failed to run clusterctl upgrade
  Unexpected error:
      <*errors.fundamental | 0xc0034bc4e0>: 
      current version of clusterctl could only upgrade the core provider to v1beta2 contract version, requested v1beta1
      {
          msg: "current version of clusterctl could only upgrade the core provider to v1beta2 contract version, requested v1beta1",
          stack: [0x3aa4970, 0x3aa39e5, 0x3ac2b64, 0x3bafbd3, 0x3bb49e8, 0x3d9b6f0, 0x86eb93, 0x882abb, 0x4841e1],
      }
  occurred
  In [It] at: /home/prow/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/client.go:202 @ 11/18/25 10:24:17.336

We still have one place that has a v1beta2 contract (only one left in the codebase):

Was it left intentionally or should it also be v1beta1 @chrischdi ?

@chrischdi
Copy link
Member

Hm still seeing this: prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api-provider-aws/5720/pull-cluster-api-provider-aws-e2e/1990716794330943488#1:build-log.txt%3A1229-1238
Are there some more of these that need updating?

[FAILED] failed to run clusterctl upgrade
  Unexpected error:
      <*errors.fundamental | 0xc0034bc4e0>: 
      current version of clusterctl could only upgrade the core provider to v1beta2 contract version, requested v1beta1
      {
          msg: "current version of clusterctl could only upgrade the core provider to v1beta2 contract version, requested v1beta1",
          stack: [0x3aa4970, 0x3aa39e5, 0x3ac2b64, 0x3bafbd3, 0x3bb49e8, 0x3d9b6f0, 0x86eb93, 0x882abb, 0x4841e1],
      }
  occurred
  In [It] at: /home/prow/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/client.go:202 @ 11/18/25 10:24:17.336

We still have one place that has a v1beta2 contract (only one left in the codebase):

Was it left intentionally or should it also be v1beta1 @chrischdi ?

This should be kept v1beta2 AFAIK, because CAPA v2.7.1 's API which provides the contract is v1beta2.

This is a "per provider" setting. Not all have to be on the same API versioning as core CAPI.

@chrischdi
Copy link
Member

Also: the job you linked was on the old commit. Not the latest one. (not sure if that had all the required changes to fix it)

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e-clusterclass
/test pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts

@chrischdi
Copy link
Member

We can ignore pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts

It is permafailing also on periodics: https://storage.googleapis.com/k8s-triage/index.html?text=No%20Control%20Plane%20machines%20came%20into%20existence.%20&job=cluster-api-provider-aws-.*ci-artifacts&xjob=-release-

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e-clusterclass

@chrischdi
Copy link
Member

I agree on the clusterctl one, this still fails already on the still running job: pull-cluster-api-provider-aws-e2e

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e
/test pull-cluster-api-provider-aws-e2e-clusterclass
/test pull-cluster-api-provider-aws-e2e-conformance
/test pull-cluster-api-provider-aws-e2e-eks

@clebs
Copy link
Author

clebs commented Nov 18, 2025

/test pull-cluster-api-provider-aws-test

@chrischdi
Copy link
Member

/lgtm

Let's see what the tests say.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 18, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 63ace2d4e0e410d0924b4df57a2df01d636dbcef

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 18, 2025
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e
/test pull-cluster-api-provider-aws-e2e-clusterclass
/test pull-cluster-api-provider-aws-e2e-conformance
/test pull-cluster-api-provider-aws-e2e-eks

@chrischdi
Copy link
Member

/retest

2 similar comments
@chrischdi
Copy link
Member

/retest

@chrischdi
Copy link
Member

/retest

@damdo
Copy link
Member

damdo commented Nov 18, 2025

@chrischdi we can wait after the janitor cleans things up, also maybe it helps to start them in small batches (e2e / e2e eks first, then the others)

@nrb
Copy link
Contributor

nrb commented Nov 18, 2025

/test pull-cluster-api-provider-aws-e2e-blocking
/test pull-cluster-api-provider-aws-e2e
/test pull-cluster-api-provider-aws-e2e-clusterclass
/test pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e-blocking
/test pull-cluster-api-provider-aws-e2e
/test pull-cluster-api-provider-aws-e2e-eks

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e-clusterclass

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-aws-e2e-conformance

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Nov 18, 2025

@clebs: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-aws-e2e-eks-gc 8596a85 link false /test pull-cluster-api-provider-aws-e2e-eks-gc
pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts 852783a link false /test pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts
pull-cluster-api-provider-aws-e2e-clusterclass 852783a link false /test pull-cluster-api-provider-aws-e2e-clusterclass
pull-cluster-api-provider-aws-e2e 852783a link false /test pull-cluster-api-provider-aws-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

* rosa: deflake unit test

* fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/contains-merge-commits kind/support Categorizes issue or PR as a support question. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CAPI v1.11.0 has been released and is ready for testing

10 participants